package com.zq.im.api;

import com.zq.im.bean.BaseModel;
import com.zq.im.bean.LoginBean;
import com.zq.im.bean.User;

import okhttp3.MultipartBody;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * Created by 张强 869518570@qq.com on 2020/8/25
 */
public interface UserApi {


    @POST("/webchat/api/user/register")
    Call<BaseModel<User>> register(@Body User user);


    ///webchat/api/user/login
    @POST("webchat/api/user/login")
    Call<BaseModel<LoginBean>> login(@Body User user);

    //上传图片
    @POST("/webchat/api/user/uploadFaceBase64")
    Call<BaseModel<LoginBean>> uploadImg(@Body RequestBody info);
}
